package versao1.view;

import versao1.mng.InformeMGN;
import versao1.vo.InformeVO;



public class InformeView {
	
	private InformeVO getInformeByID(int id){
		
		InformeMGN mgn = new InformeMGN();
		
		return mgn.getInformeByID(id);
	}
	
	public String getInformeFormatada(int id){
		
		InformeVO informe = getInformeByID(id);
		
		String resp = "";
		
		resp += "\nTitulo:" + informe.getTitulo();
		resp += "\nAutor:"  + informe.getAutor();
		
		return resp;
				
	}

}
